package com.dai.consumer_feign31;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

@SpringBootApplication
//说明是eureka的客户端
@EnableEurekaClient
//启用feign接口式调用 - 但是真正的负载均衡还是ribbon在做，一样的配置ribbon负载均衡算法即可
//feign只是改变了调用方式为接口式调用而已
@EnableFeignClients
public class ConsumerFeign31 {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerFeign31.class, args);
    }
}
